import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/generated/a.dart';
import 'package:flutter/material.dart';

class AceBackButton extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return PressedOpacityButton(
        padding: EdgeInsets.only(
            right: getDp(18),
            bottom: getDp(18),
            top: MediaQuery.of(context).padding.top + getDp(18),
            left: getDp(18)),
        onPressed: () => Navigator.of(context).maybePop(),
        child: Image.asset(
          A.assetsImagesStyleBackWhite,
          width: getDp(14),
          height: getDp(20),
          fit: BoxFit.contain,
        ));
  }
}
